package org.meluk.billboard.games;

import java.util.Hashtable;
import org.meluk.billboard.jpa.BaseGame;

public class GameHolder {

    private static final Hashtable<Long, BaseGame> games;

    static {
        games = new Hashtable<Long, BaseGame>();
    }

    public static void putGame(BaseGame game) {
        games.put(game.getId(), game);
    }

    public static BaseGame getGame(Long gameId) {
        return games.get(gameId);
    }
}
